package cn.chenhuanming.shh.api.server.controller;

import cn.chenhuanming.shh.api.server.pojo.SHHServer;
import cn.chenhuanming.shh.api.server.pojo.SHHServers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by chenhuanming on 2017-07-10.
 *
 * @author chenhuanming
 */
@RestController
public class ServerController {

    @Autowired
    SHHServers servers;

    @RequestMapping
    public List<SHHServer> test(){
        return servers.getServer();
    }
}
